package com.karry.yl.dao.system;

import com.karry.commons.base.SuperMapper;
import com.karry.yl.domain.system.Resources;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResourcesMapper extends SuperMapper<Resources> {
    List<String> findCodeListByRole(Long roleId);

    List<Resources> findListByRole(@Param("roleId") Long roleId, @Param("type") int type);

    List<Resources> findListByRoleAndTopNav(@Param("roleId") Long roleId, @Param("type") int type, @Param("topNav") int topNav);

    List<Resources> findAllListByRole(@Param("roleId") Long roleId);
}
